<template>
  <list-view>
    <select-tree
      :tree="tree"
      :value="value"
      @node-click="handleNodeClick"></select-tree>
  </list-view>
</template>

<script>
import ListView from '@/components/slot/list-view'
import SelectTree from '@/components/slot/select-tree'
export default {
  components: {
    ListView,
    SelectTree
  },
  data() {
    return {
      tree: [
        {
          id:'001',
          name:'123'
        },
        {
          id:'002',
          name:'321313'
        }
      ],
      value:''
    }
  },
  methods: {
    handleNodeClick(data) {
      this.value = data.name
    }
  }
}
</script>

